
import type { Request, Response } from 'express';

export default {
  'POST  /api/service': (_: Request, res: Response) => {
    res.send({ data: { message: 'Ok' }, success: true });
  },
  'PUT  /api/service': (_: Request, res: Response) => {
    res.send({ data: { message: 'Ok' }, success: true });
  },
  'DELETE  /api/service/:id': (_: Request, res: Response) => {
    res.send({ data: { message: 'Ok' }, success: true });
  },
  'GET /api/service/:id': (req: Request, res: Response) => {
    res.send({
      "code": 200,
      "data": {
        payAccount: '1ant-design@alipay.com',
        receiverAccount: '1test@example.com',
        receiverName: 'Alex1',
        amount: '5000',
        '@class': 'Password',
        serviceId: 'alipay',
        id: `fake-list-0`,
        signAssertions: true,
        name: `fXXX`,
        logo: '',
        tag: 'xx',
        homePage: 'xx',
        href: 'https://ant.design',
        description: 'this is description',
      }
    });
  },
};
